package com.maycari.captainbi.common.constant;

/**
 * 通用key
 */
public class CommonConstant {


    /**
     * 是否
     */
    public enum SHIFOU {
        FOU("否", 0),
        SHI("是", 1);

        SHIFOU(String code, int value) {
            this.code = code;
            this.value = value;
        }

        private String code;
        private int value;

        public int value() {
            return this.value;
        }
    }


    /**
     * 订单标记状态
     */
    public enum ORDER_REMAKE_STATUS {
        FOU("未标记", 0),
        SHI("已标记", 1),
        ERROR("标记失败", 2);

        ORDER_REMAKE_STATUS(String code, int value) {
            this.code = code;
            this.value = value;
        }

        private String code;
        private int value;

        public int value() {
            return this.value;
        }
    }

    /**
     * 是否
     */
    public enum DELETED {
        DELETED_0("未删除", 0),
        DELETED_1("已删除", 1);

        DELETED(String code, int value) {
            this.code = code;
            this.value = value;
        }

        private String code;
        private int value;

        public int value() {
            return this.value;
        }
    }

    /**
     * 仓库标记
     */
    public enum BUIKTYPE {
        BUIKTYPE_1("素材", 1),
        BUIKTYPE_2("现货", 2);

        BUIKTYPE(String code, int value) {
            this.code = code;
            this.value = value;
        }

        private String code;
        private int value;

        public int value() {
            return this.value;
        }
    }

    /**
     * 出入库标记
     */
    public enum TYPE {
        TYPE_1("出库", 1),
        TYPE_2("入库", 2);

        TYPE(String code, int value) {
            this.code = code;
            this.value = value;
        }

        private String code;
        private int value;

        public int value() {
            return this.value;
        }
    }

    /**
     * 出入库原因
     */
    public enum REASON {
        REASON_1("一键补货自动加入"),
        REASON_2("批量出库");

        REASON(String code) {
            this.code = code;
        }

        private String code;

        public String code() {
            return this.code;
        }
    }


    public enum OUT_STOCK_TYPE {
        MATERIAL("素材", 1),
        OUTSIDE_PICKING("现货", 2);

        OUT_STOCK_TYPE(String code, int value) {
            this.code = code;
            this.value = value;
        }

        private String code;
        private int value;

        public int value() {
            return this.value;
        }
    }

    public enum STORAGE_LOCATION_TYPE {
        type1("1素材散货", 1),
        type2("2素材大库", 2),
        type3("3现货散货库", 3),
        type4("4现货大库", 4);

        STORAGE_LOCATION_TYPE(String code, int value) {
            this.code = code;
            this.value = value;
        }

        private String code;
        private int value;

        public int value() {
            return this.value;
        }
    }


}



